home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / os2 / cenv2_19.arj / ISITFRI.CMD < prev    next >
OS/2 REXX Batch file  |  1994-03-08  |  750b  |  14 lines

  1. @echo OFF
  2. REM **************************************************************************
  3. REM *** IsItFri.cmd - Use CEnvi from a batch file to determine if today is ***
  4. REM *** ver.1         Friday.  CEnvi is called from one line and sets      ***
  5. REM ***               ERRORLEVEL (by its return value) to 1 if it is       ***
  6. REM ***               Friday and 0 if it is not Friday.  The batch file    ***
  7. REM ***               may then switch actions based on that ERROLEVEL      ***
  8. REM **************************************************************************
  9.  
  10. cenvi  "DateString = ctime(time())  return( strstr(DateString,"Fri") ? 1 : 0 )"
  11.  
  12. if ErrorLevel 1 ECHO WHOOPEE! It Is Friday
  13. if not ErrorLevel 1 ECHO Dang! It is Not Friday
  14.